<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>春节大促红包详情 - 社交平台</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #E63946;
            --primary-light: #FFE5E7;
            --secondary: #457B9D;
            --light: #F1FAEE;
            --dark: #1D3557;
            --accent: #A8DADC;
            --border: #E5E7EB;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: var(--light);
            color: var(--dark);
            padding-top: 20px;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1000px;
        }
        
        .back-link {
            color: var(--secondary);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            margin-bottom: 1.5rem;
            transition: color 0.2s;
        }
        
        .back-link:hover {
            color: var(--primary);
        }
        
        .back-link i {
            margin-right: 8px;
        }
        
        .redpacket-detail-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: var(--shadow);
            overflow: hidden;
            margin-bottom: 2rem;
        }
        
        .redpacket-header {
            padding: 20px 25px;
            border-bottom: 1px solid var(--border);
        }
        
        .redpacket-status {
            display: inline-block;
            background-color: var(--primary);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            margin-bottom: 15px;
        }
        
        .status-expired {
            background-color: #6B7280;
        }
        
        .status-limited {
            background-color: #F59E0B;
        }
        
        .redpacket-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 15px;
        }
        
        .redpacket-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            color: #6B7280;
            font-size: 0.9rem;
            margin-bottom: 15px;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
        }
        
        .meta-item i {
            margin-right: 6px;
            color: var(--primary);
        }
        
        .redpacket-author {
            display: flex;
            align-items: center;
            padding: 15px 25px;
            border-bottom: 1px solid var(--border);
        }
        
        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 15px;
        }
        
        .author-info {
            flex-grow: 1;
        }
        
        .author-name {
            font-weight: 600;
            margin-bottom: 3px;
        }
        
        .author-role {
            font-size: 0.85rem;
            color: #6B7280;
        }
        
        .follow-btn {
            background-color: white;
            color: var(--primary);
            border: 1px solid var(--primary);
            border-radius: 6px;
            padding: 6px 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .follow-btn:hover, .follow-btn.following {
            background-color: var(--primary);
            color: white;
        }
        
        .redpacket-content {
            padding: 25px;
        }
        
        .redpacket-amount-container {
            background-color: var(--primary-light);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 25px;
            text-align: center;
        }
        
        .amount-label {
            color: #6B7280;
            font-size: 0.9rem;
            margin-bottom: 10px;
        }
        
        .redpacket-amount {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 10px;
        }
        
        .amount-desc {
            color: #4B5563;
            font-size: 0.95rem;
        }
        
        .redpacket-description {
            margin-bottom: 25px;
            line-height: 1.8;
        }
        
        .redpacket-terms {
            background-color: #F9FAFB;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 25px;
        }
        
        .terms-title {
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }
        
        .terms-title i {
            color: var(--primary);
            margin-right: 8px;
        }
        
        .terms-list {
            padding-left: 25px;
        }
        
        .terms-list li {
            margin-bottom: 8px;
            color: #4B5563;
        }
        
        .redpacket-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 25px;
        }
        
        .redpacket-tag {
            background-color: var(--primary-light);
            color: var(--primary);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            text-decoration: none;
            transition: all 0.2s;
        }
        
        .redpacket-tag:hover {
            background-color: var(--primary);
            color: white;
        }
        
        .redpacket-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 25px;
            padding-bottom: 25px;
            border-bottom: 1px solid var(--border);
        }
        
        .action-button {
            flex-grow: 1;
            padding: 12px;
            border-radius: 8px;
            font-weight: 500;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }
        
        .primary-action {
            background-color: var(--primary);
            color: white;
        }
        
        .primary-action:hover {
            background-color: #D62828;
        }
        
        .secondary-action {
            background-color: white;
            color: var(--primary);
            border: 1px solid var(--primary);
        }
        
        .secondary-action:hover {
            background-color: var(--primary-light);
        }
        
        .social-action {
            background-color: #F9FAFB;
            color: #6B7280;
            border: 1px solid var(--border);
        }
        
        .social-action:hover {
            background-color: #F3F4F6;
            color: var(--primary);
        }
        
        .social-action.liked {
            color: var(--primary);
            border-color: var(--primary-light);
        }
        
        .social-action.saved {
            color: var(--primary);
            border-color: var(--primary-light);
        }
        
        /* 评论区样式 */
        .comments-section {
            background-color: white;
            border-radius: 12px;
            box-shadow: var(--shadow);
            padding: 25px;
            margin-bottom: 2rem;
        }
        
        .section-title {
            font-weight: 600;
            font-size: 1.4rem;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
        }
        
        .section-title i {
            color: var(--primary);
            margin-right: 10px;
        }
        
        .comment-form {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
        }
        
        .user-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .comment-input-container {
            flex-grow: 1;
        }
        
        .comment-input {
            width: 100%;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 12px 16px;
            font-size: 1rem;
            resize: none;
            min-height: 100px;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        
        .comment-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
            outline: none;
        }
        
        .comment-submit {
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 6px;
            padding: 8px 20px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s;
            margin-top: 10px;
            float: right;
        }
        
        .comment-submit:hover {
            background-color: #D62828;
        }
        
        .comments-list {
            margin-bottom: 20px;
        }
        
        .comment-item {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
            padding-bottom: 25px;
            border-bottom: 1px solid var(--border);
        }
        
        .comment-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        
        .comment-content {
            flex-grow: 1;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }
        
        .comment-author {
            font-weight: 600;
        }
        
        .comment-time {
            color: #6B7280;
            font-size: 0.85rem;
        }
        
        .comment-text {
            line-height: 1.7;
            margin-bottom: 12px;
        }
        
        .comment-actions {
            display: flex;
            gap: 1.5rem;
            font-size: 0.9rem;
        }
        
        .comment-action {
            color: #6B7280;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: color 0.2s;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        .comment-action.liked {
            color: var(--primary);
        }
        
        /* 回复区样式 */
        .replies-container {
            margin-top: 15px;
            padding-left: 15px;
            border-left: 2px solid var(--border);
        }
        
        .reply-item {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px dashed var(--border);
        }
        
        .reply-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        
        .reply-content {
            flex-grow: 1;
        }
        
        .reply-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }
        
        .reply-author {
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .reply-author.original-author {
            color: var(--primary);
        }
        
        .reply-time {
            color: #6B7280;
            font-size: 0.8rem;
        }
        
        .reply-text {
            line-height: 1.6;
            margin-bottom: 8px;
            font-size: 0.95rem;
        }
        
        .reply-actions {
            display: flex;
            gap: 1.5rem;
            font-size: 0.85rem;
        }
        
        .reply-form {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }
        
        .reply-input {
            flex-grow: 1;
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 8px 12px;
            font-size: 0.9rem;
            resize: none;
            min-height: 60px;
        }
        
        .reply-input:focus {
            border-color: var(--primary);
            outline: none;
        }
        
        .reply-submit {
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 6px;
            padding: 6px 14px;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            align-self: flex-end;
        }
        
        /* 相关推荐 */
        .related-redpackets {
            margin-bottom: 3rem;
        }
        
        .related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        
        .related-card {
            background-color: white;
            border-radius: 10px;
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .related-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .related-content {
            padding: 15px;
        }
        
        .related-title {
            font-weight: 600;
            margin-bottom: 10px;
            font-size: 1.1rem;
            color: var(--primary);
        }
        
        .related-amount {
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 10px;
        }
        
        .related-meta {
            display: flex;
            gap: 1rem;
            font-size: 0.85rem;
            color: #6B7280;
        }
        
        .related-meta-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .redpacket-title {
                font-size: 1.5rem;
            }
            
            .redpacket-amount {
                font-size: 2rem;
            }
            
            .redpacket-actions {
                flex-direction: column;
            }
            
            .action-button {
                width: 100%;
            }
            
            .comment-form {
                flex-direction: column;
            }
            
            .user-avatar {
                align-self: flex-start;
            }
        }
        
        @media (max-width: 576px) {
            .redpacket-meta {
                gap: 1rem;
                flex-direction: column;
            }
            
            .redpacket-author {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            
            .follow-btn {
                width: 100%;
                justify-content: center;
            }
            
            .related-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 返回链接 -->
        <a href="#" class="back-link">
            <i class="fas fa-arrow-left"></i> 返回红包列表
        </a>
        
        <!-- 红包详情卡片 -->
        <div class="redpacket-detail-card">
            <!-- 红包头部信息 -->
            <div class="redpacket-header">
                <span class="redpacket-status">限时领取</span>
                <h1 class="redpacket-title">春节大促红包来袭，最高可领888元！</h1>
                <div class="redpacket-meta">
                    <div class="meta-item">
                        <i class="far fa-eye"></i>
                        <span>25.8k 浏览</span>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-comment"></i>
                        <span>1.2k 评论</span>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-heart"></i>
                        <span>5.6k 点赞</span>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-calendar"></i>
                        <span>2小时前发布</span>
                    </div>
                </div>
            </div>
            
            <!-- 红包作者信息 -->
            <div class="redpacket-author">
                <img src="https://picsum.photos/100/100?random=101" alt="电商平台官方账号" class="author-avatar">
                <div class="author-info">
                    <div class="author-name">电商平台官方账号</div>
                    <div class="author-role">官方认证 · 平台运营</div>
                </div>
                <button class="follow-btn">关注</button>
            </div>
            
            <!-- 红包内容区 -->
            <div class="redpacket-content">
                <!-- 红包金额信息 -->
                <div class="redpacket-amount-container">
                    <div class="amount-label">最高可领取金额</div>
                    <div class="redpacket-amount">¥888</div>
                    <div class="amount-desc">满100减10 · 满300减50 · 满500减100</div>
                </div>
                
                <!-- 红包描述 -->
                <div class="redpacket-description">
                    <p>春节大促期间，平台发放亿元红包福利，回馈新老用户支持！本次活动红包分为多个档位，满100减10、满300减50、满500减100，更有机会抽取888元无门槛红包！</p>
                    <p>红包适用于平台内所有商品，包括电子产品、家居用品、服装鞋帽等全品类。活动期间每位用户每天可领取3次红包，红包有效期为领取后7天内，请及时使用。</p>
                    <p>此外，邀请好友参与活动还可额外获得抽奖机会，100%中奖率，快来参与吧！</p>
                </div>
                
                <!-- 红包使用条款 -->
                <div class="redpacket-terms">
                    <div class="terms-title">
                        <i class="fas fa-info-circle"></i> 红包使用规则
                    </div>
                    <ul class="terms-list">
                        <li>活动时间：2023年1月15日 - 2023年1月28日</li>
                        <li>红包领取后7天内有效，逾期自动失效</li>
                        <li>每个用户每天限领3次，活动期间最多领取15次</li>
                        <li>红包不可兑换现金，不可转赠他人</li>
                        <li>使用红包的订单若发生退款，红包金额不予退还</li>
                        <li>特价商品、预售商品不参与红包活动</li>
                    </ul>
                </div>
                
                <!-- 红包标签 -->
                <div class="redpacket-tags">
                    <a href="#" class="redpacket-tag">满减券</a>
                    <a href="#" class="redpacket-tag">限时</a>
                    <a href="#" class="redpacket-tag">全场通用</a>
                    <a href="#" class="redpacket-tag">春节</a>
                    <a href="#" class="redpacket-tag">大促</a>
                </div>
                
                <!-- 红包操作按钮 -->
                <div class="redpacket-actions">
                    <button class="action-button primary-action">
                        <i class="fas fa-redpacket"></i> 立即领取
                    </button>
                    <button class="action-button secondary-action">
                        <i class="fas fa-share-alt"></i> 分享
                    </button>
                    <button class="action-button social-action like-btn">
                        <i class="far fa-heart"></i> 点赞
                    </button>
                    <button class="action-button social-action save-btn">
                        <i class="far fa-bookmark"></i> 收藏
                    </button>
                </div>
            </div>
        </div>
        
        <!-- 评论区 -->
        <div class="comments-section">
            <h2 class="section-title">
                <i class="fas fa-comments"></i> 评论 (1243)
            </h2>
            
            <!-- 评论表单 -->
            <div class="comment-form">
                <img src="https://picsum.photos/100/100?random=301" alt="当前用户头像" class="user-avatar">
                <div class="comment-input-container">
                    <textarea class="comment-input" placeholder="分享你对这个红包的看法..."></textarea>
                    <button class="comment-submit">发布评论</button>
                </div>
            </div>
            
            <!-- 评论列表 -->
            <div class="comments-list">
                <!-- 评论1 -->
                <div class="comment-item">
                    <img src="https://picsum.photos/100/100?random=302" alt="用户头像" class="user-avatar">
                    <div class="comment-content">
                        <div class="comment-header">
                            <div class="comment-author">张先生</div>
                            <div class="comment-time">1小时前</div>
                        </div>
                        <div class="comment-text">
                            我领到了50元的红包，买了一件羽绒服，非常划算！感谢平台的春节福利，希望多搞一些这样的活动。
                        </div>
                        <div class="comment-actions">
                            <a href="#" class="comment-action like-comment">
                                <i class="far fa-heart"></i> 128
                            </a>
                            <a href="#" class="comment-action reply-comment">
                                <i class="far fa-comment"></i> 回复
                            </a>
                        </div>
                        
                        <!-- 回复区 -->
                        <div class="replies-container">
                            <!-- 回复1 -->
                            <div class="reply-item">
                                <img src="https://picsum.photos/100/100?random=101" alt="商家头像" class="user-avatar" style="width: 36px; height: 36px;">
                                <div class="reply-content">
                                    <div class="reply-header">
                                        <div class="reply-author original-author">电商平台官方账号 <span style="font-weight: normal; color: #6B7280; font-size: 0.8rem;">(官方)</span></div>
                                        <div class="reply-time">50分钟前</div>
                                    </div>
                                    <div class="reply-text">
                                        感谢您的支持！我们会不定期举办各类优惠活动，敬请关注哦~
                                    </div>
                                    <div class="reply-actions">
                                        <a href="#" class="comment-action like-comment">
                                            <i class="far fa-heart"></i> 32
                                        </a>
                                        <a href="#" class="comment-action reply-comment">
                                            <i class="far fa-comment"></i> 回复
                                        </a>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- 回复表单 -->
                            <div class="reply-form">
                                <img src="https://picsum.photos/100/100?random=301" alt="当前用户头像" class="user-avatar" style="width: 36px; height: 36px;">
                                <textarea class="reply-input" placeholder="回复 @张先生..."></textarea>
                                <button class="reply-submit">回复</button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 评论2 -->
                <div class="comment-item">
                    <img src="https://picsum.photos/100/100?random=303" alt="用户头像" class="user-avatar">
                    <div class="comment-content">
                        <div class="comment-header">
                            <div class="comment-author">李女士</div>
                            <div class="comment-time">2小时前</div>
                        </div>
                        <div class="comment-text">
                            请问这个红包可以和店铺的其他优惠叠加使用吗？我看中了一款手机，想知道能不能省更多。
                        </div>
                        <div class="comment-actions">
                            <a href="#" class="comment-action like-comment">
                                <i class="far fa-heart"></i> 45
                            </a>
                            <a href="#" class="comment-action reply-comment">
                                <i class="far fa-comment"></i> 回复
                            </a>
                        </div>
                        
                        <!-- 回复区 -->
                        <div class="replies-container">
                            <!-- 回复1 -->
                            <div class="reply-item">
                                <img src="https://picsum.photos/100/100?random=101" alt="商家头像" class="user-avatar" style="width: 36px; height: 36px;">
                                <div class="reply-content">
                                    <div class="reply-header">
                                        <div class="reply-author original-author">电商平台官方账号 <span style="font-weight: normal; color: #6B7280; font-size: 0.8rem;">(官方)</span></div>
                                        <div class="reply-time">1.5小时前</div>
                                    </div>
                                    <div class="reply-text">
                                        您好，平台红包可以和店铺优惠券叠加使用，但不可与店铺其他满减活动同时使用哦。手机类产品参加本次活动，祝您购物愉快！
                                    </div>
                                    <div class="reply-actions">
                                        <a href="#" class="comment-action like-comment">
                                            <i class="far fa-heart"></i> 18
                                        </a>
                                        <a href="#" class="comment-action reply-comment">
                                            <i class="far fa-comment"></i> 回复
                                        </a>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- 回复2 -->
                            <div class="reply-item">
                                <img src="https://picsum.photos/100/100?random=304" alt="用户头像" class="user-avatar" style="width: 36px; height: 36px;">
                                <div class="reply-content">
                                    <div class="reply-header">
                                        <div class="reply-author">王女士</div>
                                        <div class="reply-time">1小时前</div>
                                    </div>
                                    <div class="reply-text">
                                        @李女士 我昨天买了同款手机，确实可以叠加店铺优惠券，很划算！
                                    </div>
                                    <div class="reply-actions">
                                        <a href="#" class="comment-action like-comment">
                                            <i class="far fa-heart"></i> 7
                                        </a>
                                        <a href="#" class="comment-action reply-comment">
                                            <i class="far fa-comment"></i> 回复
                                        </a>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- 回复表单 -->
                            <div class="reply-form">
                                <img src="https://picsum.photos/100/100?random=301" alt="当前用户头像" class="user-avatar" style="width: 36px; height: 36px;">
                                <textarea class="reply-input" placeholder="回复 @李女士..."></textarea>
                                <button class="reply-submit">回复</button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 评论3 -->
                <div class="comment-item">
                    <img src="https://picsum.photos/100/100?random=305" alt="用户头像" class="user-avatar">
                    <div class="comment-content">
                        <div class="comment-header">
                            <div class="comment-author">赵先生</div>
                            <div class="comment-time">3小时前</div>
                        </div>
                        <div class="comment-text">
                            红包很难领到啊，试了好几次都是最小面额的，希望能提高一点中大红包的概率，让大家都能享受福利。
                        </div>
                        <div class="comment-actions">
                            <a href="#" class="comment-action like-comment">
                                <i class="far fa-heart"></i> 76
                            </a>
                            <a href="#" class="comment-action reply-comment">
                                <i class="far fa-comment"></i> 回复
                            </a>
                        </div>
                        
                        <!-- 回复表单 -->
                        <div class="reply-form">
                            <img src="https://picsum.photos/100/100?random=301" alt="当前用户头像" class="user-avatar" style="width: 36px; height: 36px;">
                            <textarea class="reply-input" placeholder="回复 @赵先生..."></textarea>
                            <button class="reply-submit">回复</button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 加载更多评论 -->
            <button class="action-button social-action" style="width: 100%;">
                <i class="fas fa-spinner fa-spin"></i> 加载更多评论
            </button>
        </div>
        
        <!-- 相关红包推荐 -->
        <div class="related-redpackets">
            <h2 class="section-title">
                <i class="fas fa-th"></i> 相关红包推荐
            </h2>
            <div class="related-grid">
                <!-- 推荐红包1 -->
                <div class="related-card">
                    <div class="related-content">
                        <h3 class="related-title">新年家电专场，满2000减300</h3>
                        <div class="related-amount">¥300 最高减免</div>
                        <div class="related-meta">
                            <div class="related-meta-item">
                                <i class="far fa-eye"></i> 8.5k
                            </div>
                            <div class="related-meta-item">
                                <i class="far fa-heart"></i> 1.2k
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 推荐红包2 -->
                <div class="related-card">
                    <div class="related-content">
                        <h3 class="related-title">服饰年货节，满500减100</h3>
                        <div class="related-amount">¥100 最高减免</div>
                        <div class="related-meta">
                            <div class="related-meta-item">
                                <i class="far fa-eye"></i> 12.3k
                            </div>
                            <div class="related-meta-item">
                                <i class="far fa-heart"></i> 2.5k
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 推荐红包3 -->
                <div class="related-card">
                    <div class="related-content">
                        <h3 class="related-title">超市生鲜满199减50</h3>
                        <div class="related-amount">¥50 最高减免</div>
                        <div class="related-meta">
                            <div class="related-meta-item">
                                <i class="far fa-eye"></i> 6.7k
                            </div>
                            <div class="related-meta-item">
                                <i class="far fa-heart"></i> 985
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 点赞功能
        document.querySelectorAll('.like-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const icon = this.querySelector('i');
                
                if (icon.classList.contains('far')) {
                    // 点赞
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('liked');
                } else {
                    // 取消点赞
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('liked');
                }
            });
        });
        
        // 收藏功能
        document.querySelectorAll('.save-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const icon = this.querySelector('i');
                
                if (icon.classList.contains('far')) {
                    // 收藏
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('saved');
                } else {
                    // 取消收藏
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('saved');
                }
            });
        });
        
        // 关注功能
        document.querySelector('.follow-btn').addEventListener('click', function() {
            if (this.classList.contains('following')) {
                // 取消关注
                this.classList.remove('following');
                this.textContent = '关注';
            } else {
                // 关注
                this.classList.add('following');
                this.textContent = '已关注';
            }
        });
        
        // 评论点赞功能
        document.querySelectorAll('.like-comment').forEach(btn => {
            btn.addEventListener('click', function(e) {
                e.preventDefault();
                const icon = this.querySelector('i');
                const countText = this.textContent.trim();
                const count = parseInt(countText);
                
                if (icon.classList.contains('far')) {
                    // 点赞
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('liked');
                    this.innerHTML = `<i class="fas fa-heart"></i> ${count + 1}`;
                } else {
                    // 取消点赞
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('liked');
                    this.innerHTML = `<i class="far fa-heart"></i> ${count - 1}`;
                }
            });
        });
        
        // 回复按钮功能
        document.querySelectorAll('.reply-comment').forEach(btn => {
            btn.addEventListener('click', function(e) {
                e.preventDefault();
                const commentAuthor = this.closest('.comment-content, .reply-content').querySelector('.comment-author, .reply-author').textContent.split(' ')[0];
                const replyInput = this.closest('.comment-item, .reply-item').querySelector('.reply-input');
                
                if (replyInput) {
                    replyInput.value = `回复 @${commentAuthor}：`;
                    replyInput.focus();
                }
            });
        });
        
        // 发布评论功能
        document.querySelector('.comment-submit').addEventListener('click', function() {
            const input = document.querySelector('.comment-input');
            const text = input.value.trim();
            
            if (text) {
                alert('评论发布成功！');
                input.value = '';
            }
        });
        
        // 回复提交功能
        document.querySelectorAll('.reply-submit').forEach(btn => {
            btn.addEventListener('click', function() {
                const input = this.parentElement.querySelector('.reply-input');
                const text = input.value.trim();
                
                if (text) {
                    alert('回复发布成功！');
                    input.value = '';
                }
            });
        });
        
        // 领取红包功能
        document.querySelector('.primary-action').addEventListener('click', function() {
            // 模拟领取红包的随机结果
            const amounts = [10, 20, 50, 100, 888];
            const randomAmount = amounts[Math.floor(Math.random() * amounts.length)];
            
            alert(`恭喜您成功领取 ${randomAmount}元 红包！红包已存入您的账户，7天内有效。`);
        });
        
        // 分享功能
        document.querySelector('.secondary-action').addEventListener('click', function() {
            alert('分享选项：微信好友、朋友圈、QQ好友、微博');
        });
    </script>
</body>
</html>
    
